﻿
namespace AggregationGateway.Services
{
    using AggregationGateway.ViewModels;
    using Microsoft.Extensions.Logging;
    using Microsoft.Extensions.Options;
    using System.Net.Http;
    using System.Threading.Tasks;
    public class TrafficService : ITrafficService
    {
        private readonly IOptions<AppSettings> _settings;
        private readonly HttpClient _httpClient;
        private readonly ILogger<TrafficService> _logger;

        private readonly string _remoteServiceBaseUrl;

        public TrafficService(HttpClient httpClient, ILogger<TrafficService> logger, IOptions<AppSettings> settings)
        {
            _httpClient = httpClient;
            _settings = settings;
            _logger = logger;

            _remoteServiceBaseUrl = $"{_settings.Value.TrafficUrl}/c/api/v1/traffic/";
        }

        public Task<Traffic> GetTraffic()
        {
            throw new System.NotImplementedException();
        }
    }
}
